<h1>Blog Preview</h1>
<%= link_to "new" ,:action=>:new %>
<%= link_to "login" ,:controller=>:login,:action=>:login %>
<% for article in @article do %>
    <h2><%= link_to article.title ,:action=>:show,:id=>article%></h2>
    <p><%= article.content %></p>
    posted by <%= article.user.name %> ,views <%= article.views %>
     date:<%= article.created_at %>
     <hr>
<%end%>

